﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master"Inherits="System.Web.Mvc.ViewPage<ShopOnline.Models.Press>" %>


<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SẢN PHẨM DỊCH VỤ
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <link type="text/css" rel="stylesheet" href="../../Content/panigate.css" />
		
		<script type="text/javascript" src="../../Scripts/jquery.pajinate.js"></script>
		
		<script type="text/javascript">


		    $(document).ready(function () {
		        $('#paging_container9').pajinate({
		            num_page_links_to_display: 3,
		            items_per_page: 4,
		            wrap_around: true,
		            show_first_last: false
		        });
		    });               
		</script>

	
		<!-- start new orther-->
				<div class="new_orther">
                    <div class="new_orther_top">
                        <div class="main_project_left"></div>		
                        <div class="title_project">TIN TỨC - SỰ KIỆN </div>
                        <div class="main_project_right"></div>
                    </div>
                    <!--start new orther center-->
                    <div class="new_orther_center">
				
			<div id="paging_container9" class="container">				
				
				 <div class="nav_content_text_orther_product">
				<ul class="content">
               
				  <% foreach (var item in ViewData["listPress"] as List<ShopOnline.Models.Press>)
                                { %>
						<li>
                        <div class="orther_text_product">	
                   			<p> <a href="/Press/BrowsePress?id=<%=item.pressId %>"><%=item.title %></a></p>
					         <img src="../../Content/PressImages/<%=item.imagePath%>" width="100px" height="100px" />
                              <%
                      var itembody="";
                      try
                      {
                          itembody = item.body.Substring(0,200).ToString();
                      }
                      catch
                      {
                          itembody = item.body;
                      }
                          
                          
                        %>
					    <%=itembody%>...
				         </li>	
								<%} %>
                               
					
				</ul>	
               
		        </div>
                <div class="clear"></div>
                 <div class="page_navigation"></div>	  
		    </div>    		
            </div>
            <!-- end new orther center-->
            </div>
            <!-- end new orther-->
        	     
	
		

</asp:Content>
